package com.baiyang.server.model.read;

import com.baiyang.server.annotation.NotNull;
import com.baiyang.server.model.article.Article;

/**
 * @author XVX - generator
 * @version 1
 */
@NotNull
public class Bill {
	//主键ID
	@NotNull
	private String id;	
	//用户id
	@NotNull
	private String userId;	
	//账单类型：0-消费 1-充值
	@NotNull
	private String type;	
	//消费时对应的阅读记录ID
	private String relationId;
	private Article article;
	//充值时对应的金额
	private Double amount;	
	//对应的数量
	@NotNull
	private Double num;	
	//创建时间
	@NotNull
	private String createTime;	
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getUserId(){
		return userId;
	}
	public void setUserId(String userId){
		this.userId = userId;
	}
	public String getType(){
		return type;
	}
	public void setType(String type){
		this.type = type;
	}
	public String getRelationId(){
		return relationId;
	}
	public void setRelationId(String relationId){
		this.relationId = relationId;
	}
	public Double getAmount(){
		return amount;
	}
	public void setAmount(Double amount){
		this.amount = amount;
	}
	public Double getNum(){
		return num;
	}
	public void setNum(Double num){
		this.num = num;
	}
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime = createTime;
	}

	public Article getArticle() {
		return article;
	}

	public void setArticle(Article article) {
		this.article = article;
	}
}
